package com.shuhua.pojo.entity;

<<<<<<< HEAD
=======
import com.baomidou.mybatisplus.annotation.IdType;
>>>>>>> 312a8547971bd28c72072d07caef702821bd7891
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.Date;

<<<<<<< HEAD
/**
 * 公告实体类
 */
@Data
@TableName("announcement")
public class Announcement {
    
    @TableId
    private Long id;
    
    private String title;
    
    private Date time;
    
    private String content;

    // Getters and Setters
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }
}
=======
@Data
@TableName("announcement") // 指定表名
public class Announcement {
    @TableId(type = IdType.AUTO)
    private Long id;
    private String title;
    private Date time;
    private String content;
}
>>>>>>> 312a8547971bd28c72072d07caef702821bd7891
